using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using TangLiveRecorder.Utils;

namespace TangLiveRecorder.Models
{
    public class LiveInfo
    {
        public string Guid { get; set; }

        public string Platform
        {
            get
            {
                return UrlHelper.GetPlatform(this.Url);
            }
        }

        public string PlatformIcon
        {
            get
            {
                return IconHelper.GetIconValue(this.Url);
            }
        }

        public string Avatar { get; set; }
        public string Name { get; set; }
        public string Description { get; set; }
        public string Url { get; set; }
        public bool Status { get; set; }
        public bool IsLive { get; set; }
        
        /// <summary>
        /// 是否正在录制
        /// </summary>
        public bool IsRecording { get; set; }

        public override string ToString()
        {
            return $"{Name} - {Url} ";
        }
    }
}